package zuoye23.zuoye3;

public class Mouse {
//    3:oop模拟实现猫抓老鼠,
//    猫有名字,体重,体力等属性,老鼠有名字,体力等属性
//,如果老鼠被猫抓住,被咬死,猫体力上涨,老鼠体力变成0;
    private String name;
    private int health;

    public Mouse(String name, int health) {
        this.name = name;
        this.health = health;
    }

    public Mouse() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }
}
